feat: go grpc client - #118
Merged
Merged
Conversation
kacy
force-pushed
the
feat/grpc-server
branch
from
February 14, 2026 16:12
37d6c01 to
1050f1a
Compare
generated go stubs from ember.proto using protoc-gen-go and protoc-gen-go-grpc. makefile provides a proto-gen target for regeneration.
thin wrapper over generated grpc stubs covering strings, lists, hashes, sets, sorted sets, vectors, and server commands. key features: - functional options for SET (NX, XX, EX, PX) and VADD (metric, M, ef) - auth via metadata header (WithPassword option) - vector operations accept []float32 directly — zero parsing overhead - build-only tests verify compilation
kacy
force-pushed
the
feat/grpc-go-client
branch
from
February 14, 2026 16:15
03449f1 to
8876c4a
Compare
kacy
added a commit
that referenced
this pull request
Feb 19, 2026
* add go proto codegen and makefile generated go stubs from ember.proto using protoc-gen-go and protoc-gen-go-grpc. makefile provides a proto-gen target for regeneration. * add go client with idiomatic API thin wrapper over generated grpc stubs covering strings, lists, hashes, sets, sorted sets, vectors, and server commands. key features: - functional options for SET (NX, XX, EX, PX) and VADD (metric, M, ef) - auth via metadata header (WithPassword option) - vector operations accept []float32 directly — zero parsing overhead - build-only tests verify compilation * add proto-go target to root makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
adds the official go client for ember over grpc. thin wrapper over generated
proto stubs with idiomatic go API.
clients/ember-go/: go module with generated proto stubs and high-level client[]float32directly — zero parsing overheadproto-gotargetcovered commands: Get, Set, Del, Exists, Incr, IncrBy, Expire, TTL, LPush,
RPush, LPop, RPop, LRange, LLen, HSet, HGet, HGetAll, HDel, SAdd, SMembers,
SCard, ZAdd, ZRange, VAdd, VSim, Ping, FlushDB, DBSize.
what was tested
go test -v ./...— 2/2 pass (build verification tests)go vet ./...— cleanmake proto-genin the go client directorydesign considerations
the client uses grpc lazy connections (
grpc.NewClient), so Dial() doesn'tactually connect until the first RPC call. this matches the go grpc best
practices and means creating a client is always non-blocking.